package com.rayo.accesscontrollercopy.utils;

import rx.Subscription;

/**
 * Created by lyc-pc on 17/5/9.
 */

public class CancelUtils {
    public static void unsubscribe(Subscription subscription){
        if(subscription!=null&&!subscription.isUnsubscribed()){
            subscription.unsubscribe();
        }

    }
}
